package com.jcsz.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jcsz.common.utils.PageUtils;
import com.jcsz.gulimall.product.entity.CategoryEntity;
import com.jcsz.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author 一把Po吉他
 * @email volibear@gulimall.com
 * @date 2022-10-16 08:40:06
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> queryPageTree();

    void removeMenuByIds(List<Long> asList);

    Long[] getCatelogPathById(Long catelogId);

    List<CategoryEntity> getLevel1Catagories();

    Map<String, List<Catelog2Vo>> getCatlogJson();

    void updateCategory(CategoryEntity category);
}

